import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import AboutView from '../views/AboutView.vue'
import login from '@/views/login.vue'
import news from '@/views/news.vue'
import order from '@/views/order.vue'
import salary from '@/views/salary.vue'
import myinfo from '@/views/myinfo.vue'
import companytotal from '@/views/companytotal.vue'
import oldpeople from '@/views/oldpeople.vue'
import pregnantpeople from '@/views/pregnantpeople.vue'
import disabilitypeople from '@/views/disabilitypeople.vue'
import outplacepeople from '@/views/outplacepeople.vue'
import common from '@/views/common.vue'
import oldlist from '@/views/oldlist.vue'
import pregnantlist from '@/views/pregnantlist.vue'
import disabilitylist from '@/views/disabilitylist.vue'
import outplacelist from '@/views/outplacelist.vue'
import commonlist  from '@/views/commonlist.vue'
import hospitalcompany  from '@/views/hospitalcompany.vue'
import primarycompany from '@/views/primarycompany.vue'
import middlecompany from '@/views/middlecompany.vue'
import highcompany from '@/views/highcompany.vue'
import majorcompany from '@/views/majorcompany.vue'
import primarylist from '../views/primarylist.vue'
import middlelist from '../views/middlelist.vue'
import highlist from '../views/highlist.vue'
import majorlist from '../views/majorlist.vue'
import register from '../views/register.vue'
import registersuccessful from '@/views/registersuccessful.vue'
import myschedule from '@/views/myschedule.vue'
import peoplenews from '@/views/peoplenews.vue'


const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'AboutView',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  },
  {
    path:'/login',
    name:'login',
    component:login
  },
 {
   path:'/news',
   name:'news',
   component:news
 },
 {
   path:'/order',
   name:'order',
   component:order
 },
 {
   path:'/salary',
   name:'salary',
   component:salary
 },
 {
   path:'/myinfo',
   name:'myinfo',
   component:myinfo
 },
 {
   path:'/companytotal',
   name:'companytotal',
   component:companytotal
 },
 {
   path:'/oldpeople',
   name:'oldpeople',
   component:oldpeople
 },
 {
   path:'/pregnantpeople',
   name:'pregnantpeople',
   component:pregnantpeople
 },
 {
   path:'/disabilitypeople',
   name:'disabilitypeople',
   component:disabilitypeople
 },
 {
   path:'/outplacepeople',
   name:'outplacepeople',
   component:outplacepeople
 },
 {
   path:'/common',
   name:'common',
   component:common
 },
 {
   path:'/oldlist',
   name:'oldlist',
   component:oldlist
 },
 {
   path:'/pregnantlist',
   name:'pregnantlist',
   component:pregnantlist
 },
 {
   path:'/disabilitylist',
   name:'disabilitylist',
   component:disabilitylist
 },
 {
   path:'/outplacelist',
   name:'outplacelist',
   component:outplacelist
 },
 {
   path:'/commonlist',
   name:'commonlist',
   component:commonlist
 },
 {
   path:'/hospitalcompany',
   name:'hospitalcompany',
   component:hospitalcompany
 },
 {
   path:'/primarycompany',
   name:'primarycompany',
   component:primarycompany
 },
 {
   path:'/middlecompany',
   name:'middlecompany',
   component:middlecompany
 },
 {
   path:'/highcompany',
   name:'highcompany',
   component:highcompany
 },
 {
   path:'/majorcompany',
   name:'majorcompany',
   component:majorcompany
 },
 {
   path:'/primarylist',
   name:'primarylist',
   component:primarylist
 },
 {
   path:'/middlelist',
   name:'middlelist',
   component:middlelist
 },
 {
   path:'/highlist',
   name:'highlist',
   component:highlist
 },
 {
   path:'/majorlist',
   name:'majorlist',
   component:majorlist
 },
 {
   path:'/register',
   name:'register',
   component:register
 },
 {
   path:'/registersuccessful',
   name:'registersuccessful',
   component:registersuccessful
 },
 {
   path:'/myschedule',
   name:'myschedule',
   component:myschedule
 },
 {
   path:'/peoplenews',
   name:'peoplenews',
   component:peoplenews
 },
 
  



]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})
// const router = new VueRouter({
//   // mode: "history",
//   base: process.env.BASE_URL,
//   routes
//  });

export default router
